#pragma once

#include "NetServer.h"
#include "EchoSession.h"

#include <boost/pool/detail/singleton.hpp>

class EchoServer : public NetServer<EchoSession>
{
    typedef NetServer<EchoSession> super;
public:
    EchoServer(unsigned short port=0);
    virtual ~EchoServer();
};

typedef boost::details::pool::singleton_default<EchoServer> GlobalEchoServer;
#define ECHOSVR GlobalEchoServer::instance()

